package cn.ac.siom.query.dao.impl;

import cn.ac.siom.query.dao.InfoLinkDAO;
import cn.ac.siom.query.vo.InfoLink;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.sql.SQLException;
import java.util.List;
import java.util.Set;

@Repository
public class InfoLinkDAOImpl extends SqlSessionDaoSupport implements InfoLinkDAO {

    @Autowired
    public InfoLinkDAOImpl(SqlSessionFactory sqlSessionFactory) {
        super.setSqlSessionFactory(sqlSessionFactory);
    }

    @Override
    public List<InfoLink> findT1T2() throws SQLException {
        return super.getSqlSession().selectList("infolink.selectT1T2");
    }

    @Override
    public boolean doCreate(InfoLink vo) throws SQLException {
        return false;
    }

    @Override
    public boolean doUpdate(InfoLink vo) throws SQLException {
        return false;
    }

    @Override
    public boolean doRemove(Set<?> ids) throws SQLException {
        return false;
    }

    @Override
    public InfoLink findById(Integer id) throws SQLException {
        return null;
    }

    @Override
    public List<InfoLink> findAll() throws SQLException {
        return null;
    }

    @Override
    public List<InfoLink> findAllBySplit(String column, String keyWord, Integer currentPage, Integer lineSize) throws SQLException {
        return null;
    }
}
